{% extends "base.html" %}

{% block title_block %}
	{{ block.super }}Articles
{% endblock %}

{% block page_content_block %}
	<div class="page_name understyle">Articles</div>
	
	{% if articles.count %}
		{% for art in articles %}
			<div class="undertext_block">
				<div class="understyle">
					<div class="yellow_block inline_type">Bands</div>
					<div class="dark_block inline_type">Musicians</div>
					<br>
					<div class="yellow_block inline_type">Sort by name</div>
					<div class="dark_block inline_type">Sort by genre</div>
					<div class="dark_block inline_type">Sort by band forming year</div>
					<div class="dark_block inline_type">Sort by origin</div>
					<br>
					<div class="yellow_block sort_item">A</div>
					<div class="yellow_block sort_item">B</div>
					<div class="yellow_block sort_item">C</div>
					<div class="yellow_block sort_item">D</div>
					<a href="/articles/{{ art.key }}/">{{ art.current_lang_text.title }}</a>
					<div class="yellow_block sort_item">E</div>
				</div>
				<!--<div class="date_block understyle">{{ art.created|date:date_format }}</div>-->
				<br>
				{{ art.current_lang_text.short_text|safe }}
			</div>
		{% endfor %}
	{% else %}
		<div class="undertext_block">
			<div class="section_name understyle">No articles!</div>
			<div class="date_block understyle">{{ current_time|date:date_format }}</div>
			<p>Sorry...</p>
		</div>
	{% endif %}
{% endblock %}
